﻿using UnityEngine;
using System.Collections;

public class Test02 : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
		//创建数据库名称为xuanyusong.db
		DbAccess db = new DbAccess("data source=xuanyusong.db");
		//请注意 插入字符串是 已经要加上'宣雨松' 不然会报错
		//db.InsertInto("momo", new string[]{ "'宣雨松'","'289187120'","'xuanyusong@gmail.com'","'www.xuanyusong.com'"   });
		db.UpdateInto("momo",new string[]{"name","qq"},new string[]{"'xuanyusong'","'11111111'"}, "email", "'xuanyusong@gmail.com'"  );
		//db.UpdateInto("jms",new string[]{"name","qq"},new string[]{"'jingmengshen'","'11111111'"}, "email", "'jms@gmail.com'");

		db.CloseSqlConnection();

	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
